Klasse ExceptionData

java.lang.Object
com.inet.pdfc.error.ExceptionData
Alle implementierten Schnittstellen:
com.inet.error.HasErrorCode
Bekannte direkte Unterklassen:
PresenterExceptionData

@JsonData public class ExceptionData extends Object implements com.inet.error.HasErrorCode
A JSON serializable replacement for Throwables. Since i-net PDFC is designed to persist and transmit any part of the result, consider to use this class in events instead of throwing an Exception directly.
Seit:
4.0
  • Konstruktordetails

    • ExceptionData

      public ExceptionData(int errorCode, String errorClass, String message, String stack)
      Creates an instance for a Throwable
      Parameter:
      errorCode - the error code if any, hence -1. ErrorCodes are well defined to the application and each plug-in so please don't guess this value. When in doubt, use -1.
      errorClass - the full qualified class name of the original exception class
      message - the message of the exception
      stack - the stack of the exception
      Seit:
      4.0
  • Methodendetails

    • getErrorClass

      public String getErrorClass()
      Returns the full class name of the root cause Throwable
      Gibt zurück:
      the full class name of the root cause Throwable, not null
      Seit:
      4.0
    • getErrorCode

      public int getErrorCode()
      Returns the error code or -1 if there original Throwable had none
      Angegeben von:
      getErrorCode in Schnittstelle com.inet.error.HasErrorCode
      Gibt zurück:
      the error code or -1
      Seit:
      4.0
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • getMessage

      public String getMessage()
      Returns the message of the root cause
      Gibt zurück:
      the message of the root cause, may be null e.g. for a NullPointerException
      Seit:
      4.0
    • getStack

      public String getStack()
      Returns the stack trace of the root cause Throwable
      Gibt zurück:
      the stack trace of the root cause Throwable, may be null if not provided by the root cause Throwable
      Seit:
      4.0
    • equals

      public boolean equals(Object obj)
      Setzt außer Kraft:
      equals in Klasse Object